Skip to content

chore: shared Windows agent launcher and full third-party licence notices - #19

Merged
nodemode-ai merged 3 commits into
mainfrom
chore/launcher-and-notices
Nov 30, 2026
Merged

nodemode-ai merged 3 commits into
mainfrom
chore/launcher-and-notices

Conversation

@gbarnai

@gbarnai gbarnai commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • fix(agents): replace backend/app/services/agent_lookup.py with FormVis's canonical 1.1.0 byte for byte (sha256 313fcd40...1da8e) and record the hash in setup/agents.py. No formtools wrapper duplicated the hardening, so no call was removed.
  • Windows start tests updated for CommandLineRefused, with new cases for letter case and trailing dots, pnpm and bun shims, launchers that set their own variables, the program path rule, the @ and empty-word rule, and the agent check.
  • feat(notices): setup/notices.py with notices_python.py and notices_crates.py (FormDAM model) generates THIRD-PARTY-NOTICES.txt with the full licence texts of the Python runtime, the PyInstaller bootloader, 49 Python packages, 16 production npm packages and 616 crates, plus references for downloaded FFmpeg and ExifTool.
  • python setup/notices.py --check added to the CI test job. It needs no network or cargo.
  • The notices file is bundled in the frozen engine (freeze_backend and freeze_backend.bat) and in every installer (tauri.conf.json resources, which now also carry LICENSE and NOTICE.md), served at GET /api/notices, and shown in Settings, About under Licences and notices.
  • NOTICE.md stays the human ledger: it points to the file and gains rows for cryptography, cffi and pycparser, the FastAPI and uvicorn extras, CPython and the PyInstaller bootloader.
  • Tests: backend/tests/core/test_notices.py (route, origin guard, 404, check passes, check finds gaps) and frontend/tests/unit/ui/notices.test.ts. The one existing pytest failure in test_fs_routes also fails on origin/main.

Tests

  • The notices check and the tests for the launcher behaviour this app depends on were run locally on macOS; failures seen locally also fail on main. Please rely on this PR's CI.

How to ship

  • Independent of other repos. The shared launcher file is the same byte for byte in every Form app (agent_lookup 1.1.0, source in FormVis). No version bump; it can go into the next release.

…nent

setup/notices.py writes THIRD-PARTY-NOTICES.txt from the installed Python
packages (any platform, wheels for the ones not installed here), the
production npm packages, the Rust crates in Cargo.lock and the programs the
engine downloads on request, and its check mode runs in the CI test job.
The file ships in every installer and inside the frozen engine, the engine
serves it at /api/notices, and Settings, About shows it.
@gbarnai
gbarnai requested a review from nodemode-ai as a code owner November 29, 2026 23:14
…tream texts

56 crates published without a licence file now carry the full text, taken
from setup/licence_texts/crate/<name>-<version>/ with a SOURCE.txt naming the
upstream file and ref (55) or the SPDX text it was reconstructed from (1,
selectors 0.38.0). setup/notices.py uses these folders and names the source
in each entry's note.
@nodemode-ai
nodemode-ai merged commit 9d59aff into main Nov 30, 2026
6 checks passed
@nodemode-ai
nodemode-ai deleted the chore/launcher-and-notices branch November 30, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants